﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YLClient.Util
{
    static class TimeExtension
    {
        public static DateTime getZeroTime(this DateTime time)
        {
            return new DateTime(time.Year, time.Month, time.Day, 0, 0, 0);
        }
        public static DateTime getFinalTime(this DateTime time)
        {
            return new DateTime(time.Year, time.Month, time.Day, 23, 59, 59);
        }
    }
}
